
package com.xiaoma.myaudience.biz.model;

import java.util.List;
import java.util.Map;

import android.os.Parcel;
import android.os.Parcelable;

import com.xiaoma.myaudience.util.model.BaseInfo;

/**
 * 播放条件bean. 
 * 
 * @author xali
 */
public class PlayVideoInfo extends PlayRecordNoLoginInfo {
    public static final String TAG = "PlayVideoInfo";
    
    /**影片高清MP4URL*/
    public static final String PARAM_MP4_HDURL = "mp4hdurl";
    /**影片普清MP4URL*/
    public static final String PARAM_MP4_SDURL = "mp4sdurl";

    public int mVnumber;
    /**视频URL的list 可以用索引 获取 */
    public List<Map<String, String>> mUrlList;
    
    
    @SuppressWarnings("unchecked")
	@Override
    public void readFromParcel(Parcel source) {
        super.readFromParcel(source);
        
        ClassLoader cl =  Map.class.getClassLoader();
		mUrlList = source.readArrayList(cl); 
		
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel paramParcel, int paramInt) {
        super.writeToParcel(paramParcel, paramInt);
        paramParcel.writeList(mUrlList);
    }
    
    public static final Parcelable.Creator<PlayVideoInfo> CREATOR = new Creator<PlayVideoInfo>() {
        public PlayVideoInfo createFromParcel(Parcel source) {
            PlayVideoInfo info = new PlayVideoInfo();
            info.readFromParcel(source);
            return info;
        }

        public PlayVideoInfo[] newArray(int size) {
            return new PlayVideoInfo[size];
        }
    };    
}
